package com.lzh.java;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

/**
 * @author liuzhihao
 * @create 2021-02-25 20:31
 */
public class FileUtilsTets {

    public static void main(String[] args) {

        File srcFile = new File("day10\\1.jpg");
        File destFile = new File("day10\\3.jpg");

        try {
            FileUtils.copyFile(srcFile,destFile);
        } catch (IOException e) {
            e.printStackTrace();
        }

    }

}
